package za.co.ray.eyewtkah.objects;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlRootElement;

import za.co.ray.eyewtkah.objects.definition.EntitlementDefinition;
import za.co.ray.eyewtkah.objects.status.Decidable;
import za.co.ray.eyewtkah.objects.status.EntitlementStatus;

@XmlRootElement
public class Entitlement implements Decidable, Serializable {

    private static final long serialVersionUID = 5813619659380194778L;

    private Long id;

    private EntitlementStatus status;

    private TimePeriod period;

    private EntitlementDefinition definition;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public EntitlementStatus getStatus() {
        return status;
    }

    public void setStatus(EntitlementStatus status) {
        this.status = status;
    }

    public TimePeriod getPeriod() {
        return period;
    }

    public void setPeriod(TimePeriod period) {
        this.period = period;
    }

    public EntitlementDefinition getDefinition() {
        return definition;
    }

    public void setDefinition(EntitlementDefinition definition) {
        this.definition = definition;
    }

}
